#!/usr/bin/env bash 
 
echo "start install mycat" 

echo "开始进入解压..."
tar -zxvf /home/downloads/Mycat-server-1.4-beta-20150604171601-linux.tar.gz -C /home/downloads/  
mv /home/downloads/mycat /usr/local/mycat 
echo "解压成功"

# mysql -uroot -p123456 -h127.0.0.1 -P8066
 

echo "mycat 安装成功"
echo "开始测试 mycat 是否安装看成。看下面输出"
mycat status